package CSDN;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 王圆豪
 * Date: 2025-05-14
 * Time: 23:55
 */
class Point{
    double x;
    double y;

    //传入平面直角坐标参数
    public Point(double x, double y){
        this.x = x;
        this.y = y;
    }

//    //传入极坐标参数
//    public Point(double r, double a){
//        //通过极坐标参数来初始化x,y的值
//    }
}

class MyThreadFactory{
    public Point constructByXY(double x, double y){
        //定义属性
        Point point = new Point(x,y);
        return point;
    }

    public Point constructByRA(double r, double a){
        int x = 0,y = 0;
        //对x，y进行初始化

        Point point = new Point(x,y);
        return point;
    }
}

public class Test23 {

}
